NevronOpenVision
Nevron.Nov.Graphics Namespace / NGeometry2D Class / GetMedicenter Method / GetMedicenter(NPoint[],Int32,Int32) Method
Array of points.
The number of points to evaluate.
The index of the first point.
GetMedicenter(NPoint[],Int32,Int32) Method
Calculates the medicenter (center of mass) of the points in the specified points array.
Syntax
public static NPoint GetMedicenter( 
   NPoint[] points,
   System.int startIndex,
   System.int count
)

Parameters

points
Array of points.
startIndex
The number of points to evaluate.
count
The index of the first point.

Return Value

the medicenter
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

See Also